package top.tagao.m03_beHavioralPatterns.b_05_mediator.mediator;

import top.tagao.m03_beHavioralPatterns.b_05_mediator.colleague.Colleague;

/**
 * 抽象中介者
 * @author Viktor_Liu
 * @Date 2022/8/13 23:10
 */
public abstract class Mediator {
    //将给中介者对象，加入到集合中
    public abstract void Register(String colleagueName, Colleague colleague);

    //接收消息, 向具体的同事对象发出
    public abstract void GetMessage(int stateChange, String colleagueName);

    public abstract void SendMessage();
}
